var app=getApp();
// var uitl = require("../../../utils/util.js");
import {Movie} from 'class/Movie.js';
Page({
    data: {
        
    },
    onLoad: function (options) {
        var id=options.id;
        var detailMoviesUrl = app.globlData.doubanbase + "/v2/movie/subject/"+id;
        var that=this;
        var movie = new Movie(detailMoviesUrl);
        movie.getMovieData(function (movie){
            that.setData({
                movies: movie
            })
        })
    },
    viewMoviePostImg:function(event){
        var imgUrl = event.currentTarget.dataset.img;
        wx.previewImage({
            current: imgUrl,
            urls: [imgUrl]
        })
    }
})